package com.leyou.Service;

import com.leyou.item.dto.Category;
import com.leyou.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaoxiaozhao
 * @description 类目service
 * @date 2018/11/10 16:24
 */
@Service
public class CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    public List<Category> listCagegory(){
        List<Category> categoryList = categoryMapper.selectAll();
        return categoryList;
    }
}